package cn.edu.gsau.info.models;

import cn.edu.gsau.info.vo.FileSave;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jinjiang
 * @since 2022-11-17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_lunwen")
@JsonIgnoreProperties(ignoreUnknown = true)
public class Lunwen implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    private Long tianbaoId;
    private String tianbaoName;

    @TableField(exist = false)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private FileSave[] fileList ;

    private String name;

    @TableField(exist = false)
    private String desc;

    private String kanwuName;

    private String deFen;

    private String kanwuJibie;

    private LocalDate pubDate;

    private Integer zongRenShu;

    private Integer meSort;

    /**
     * 是或否
     */
    private String isTongxunZuozhe;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private String lunwenLeixing;

    /**
     * 是或否
     */
    private String isSchoolHeding;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    private String status;

    private String node;

    private String manager;

    @TableLogic
    private Integer deleted;

    private String memo;


}
